<aside class="main-sidebar">
    <section class="sidebar">
        <!-- 左侧头 -->
        <div class="user-panel">
            <div class="pull-left image">
                <#--${user.avatar?default("/statics/img/user2-160x160.jpg")}-->
                <img click-id="userInfo" src="${ctxStatic}<#if user.avatar?? && user.avatar!="">${user.avatar}<#else>/static/img/user2-160x160.jpg</#if>"
                     class="img-circle" alt="User Image" onerror="imgUserError();" title="<@ctx.i18n text = "个人中心"/>">
            </div>
            <div class="pull-left info">
                <p>${user.name}</p>
                <a href="#"><i class="fa fa-circle text-success"></i><@ctx.i18n text = "在线"/></a>
                <a  href="javascript:void(0);" click-id="logout" style="padding-left:5px;"><i class="fa fa-sign-out text-danger"></i><@ctx.i18n text = "注销"/></a>
            </div>
        </div>
        <#if user.pwdSecurityLevel == "0" || user.pwdSecurityLevel == "1" ||  user.pwdSecurityLevel == "2">
            <script>
                $(function () {
                    opt.layer.confirm('<#if user.pwdSecurityLevel == "0"><@ctx.i18n text = "您的密码还是初始密码,为了您的账户安全请尽快修改密码!"/><#else><@ctx.i18n text = "您的密码强度级别低,为了您的账户安全请尽快修改密码!"/></#if>',
                        {btn: ['<i class="fa fa-check"></i> '+'<@ctx.i18n text = "确定"/>','<i class="fa fa-close"></i> '+'<@ctx.i18n text = "取消"/>'],
                            shadeClose: true,icon: 3, title:'<i class="fa fa-shield"></i> <@ctx.i18n text = "安全提示"/>'},
                        function(index){
                            var data = {
                                href: 'sys/user/profile/password',
                                icon: 'fa fa-shield',
                                title: '<@ctx.i18n text = "个人中心"/>',
                                id: '-1',
                                module:'_sysInfo'
                            };
                            opt.variable.navtab.tabAdd(data);
                            opt.layer.close(index);
                            return;
                        });
                    /*登录提示音*/
                    setTimeout(function(){
                        opt.common.playSound("1");
                    },100);
                })
            </script>
        </#if>
        <#include "/common/index/menu.html"/>
    </section>
</aside>